package com.vehicle.bean;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.util.Date;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author 校园车辆管理系统
 * @since 2023-04-21
 */
@Data
  @EqualsAndHashCode(callSuper = false)
    @ApiModel(value="ParkingLot对象", description="")
public class ParkingLot implements Serializable {

    private static final long serialVersionUID=1L;

      @ApiModelProperty(value = "车位id")
        @TableId(value = "parking_id", type = IdType.AUTO)
      private Integer parkingId;

      @ApiModelProperty(value = "区域id")
      private Integer areaId;

      @ApiModelProperty(value = "车位状态（0：空闲，1：占有）")
      private Integer seatState;

      @ApiModelProperty(value = "最近一次车位被占时间")
      @TableField(fill = FieldFill.INSERT)
      private LocalDateTime createTime;

      @ApiModelProperty(value = "最近一次车位被归还时间")
      @TableField(fill = FieldFill.INSERT_UPDATE)
      private LocalDateTime updateTime;


     @ApiModelProperty(value = "该区域信息是否已删除（0：未删除，1：已删除）")
     @TableLogic
     private Integer deleted;


}
